#ifndef _IdSerialize_h_
#define _IdSerialize_h_

#include <string>

#include "Serializer.h"
#include "STLSerializer.h"
#include "Factory/Factory.h"

namespace persist
{
/*
inline Serializer& operator << (Serializer& serializer, GUID& guid)
{
    ulong   size = sizeof(GUID);
    ulong   i = 0;
    char    *buffer = reinterpret_cast<char *>(&guid);
    for (; i < size; i++)
    {
        serializer << buffer[i];
    }
    return serializer;
}
*/
inline Serializer& operator << (Serializer& serializer, Identifier& identifier)
{
    serializer << identifier.className;
    return serializer;
}
} //namespace
#endif